package cc.owoo.godpen.analysis.html.extract;

import cc.owoo.godpen.analysis.html.Element;
import cc.owoo.godpen.analysis.json.Json;

/**
 * HTML内容提取器
 * Created by nimensei
 * 2022-06-05 下午 09:30
 */
public class Extract {
    /**
     * 添加函数
     *
     * @param cls 函数类
     */
    public static void function(Class<?> cls) {

    }

    public static Extract parse(String string) {
        ExtractAnalysis analysis = new ExtractAnalysis(new ExtractStringAnalysis(string.toCharArray()));
        return null;
    }

    /**
     * 提取内容
     *
     * @param element DOM元素
     * @return 提取结果
     */
    public Json extract(Element element) {
        return null;
    }
}
